package com.byb.server.service.dto;


import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.Objects;

/**
 * A DTO for the OtherSafeguard2nd entity.
 */
public class OtherSafeguard2ndDTO implements Serializable {

    private Long id;

    private String title;

    private String info;

    private String safeImg;

    private Long otherSafeguardId;

    private Long productId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getSafeImg() {
        return safeImg;
    }

    public void setSafeImg(String safeImg) {
        this.safeImg = safeImg;
    }

    public Long getOtherSafeguardId() {
        return otherSafeguardId;
    }

    public void setOtherSafeguardId(Long otherSafeguardId) {
        this.otherSafeguardId = otherSafeguardId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        OtherSafeguard2ndDTO otherSafeguard2ndDTO = (OtherSafeguard2ndDTO) o;
        if(otherSafeguard2ndDTO.getId() == null || getId() == null) {
            return false;
        }
        return Objects.equals(getId(), otherSafeguard2ndDTO.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getId());
    }

    @Override
    public String toString() {
        return "OtherSafeguard2ndDTO{" +
            "id=" + getId() +
            ", title='" + getTitle() + "'" +
            ", info='" + getInfo() + "'" +
            ", safeImg='" + getSafeImg() + "'" +
            "}";
    }
}
